package edu.mit.media.fv.events
{
	import flash.events.Event;
	
	public class FVNetworkEvent extends Event
	{
		public static const FVNE:String = "FluidVoiceNetworkEvent";
		
		
		public static const REQUEST_LOGIN:String = "FVNErequestloginFluidVoice";
		//public static var EDIT_USER:String = "FVNEfvEditUser";
		
		public static var CREATE_TEXT:String = "FVNEcreateTextFluidSpace";
		public static var CREATE_VOICE:String = "FVNEcreateVoiceFluidSpace";
		public static var CREATE_POLL:String = "FVNEcreatePollFluidSpace";
		
		public static var DISPLAY_POLL:String = "FVNEdisplayPoll";
		public static var DISPLAY_POLL_RESULT:String = "FVNEdisplayPollResult";
		public static var DISPLAY_IM:String = "FVNEdisplayIM";
		public static var DISPLAY_TEXT:String = "FVNEdisplayText";
		public static var DISPLAY_VOICE:String = "FVNEdisplayVoice";
		public static var DISPLAY_USER:String = "FVNEdisplayUser";
		public static var DISPLAY_GROUP:String = "FVNEdisplayGroup";
		public static var DISPLAY_SHOPPING:String = "FVNEDisplayShopping";
		
		public static const CREATE_GROUP:String = "FVNEfvCreateGroup";
		public static const DELETE_GROUP:String = "FVNEfvDeleteGroup";
		public static const ADD_TO_GROUP:String = "FVNEfvAddUserToGroup";
		public static const REMOVE_FROM_GROUP:String = "FVNEfvRemoveuserFromGroup";
		public static const RENAME_GROUP:String = "FVNEfvrenamegroup";
		
		public static const REQUEST_START_RECORD:String = "FVNErequestStartRecord";
		public static const REQUEST_STOP_RECORD:String = "FVNErequestStopRecord";
		public static const REQUEST_START_PLAY:String = "FVNErequestPlay";
		public static const REQUEST_STOP_PLAY:String = "FVNErequestStop";
		public static const REQUEST_MUTE:String = "FVNErequestMute";
		public static const REQUEST_UNMUTE:String = "FVNErequestUnmute";
		public static const REQUEST_EDIT_VOLUME:String = "FVNErequestEditVolume";
		public static const REQUEST_ATTENTION:String = "FVNErequestAttention";
		
		private var _data:Object;
		public function FVNetworkEvent(data:Object = null)
		{
			super(FVNE);
			if(data == null){
				this._data = new Object();
				this._data.isNull = 1;
			}else{
				this._data = data;
			}
		}
		public function get data():Object{
			return this._data;
		}
	}
}